package com.example.visitor.visit;

/**
 * @author ycd0075
 * @date 2024-01-25 17:20
 */
public class President implements Visitor{
    @Override
    public void visit(NormalPersonA element) {
        System.out.println("你好："  + element.getName() + "，请多吃饭 " );
    }

    @Override
    public void visit(NormalPersonB element) {
        System.out.println("你好：" + element.getName() + "注意保暖 " );
    }
}
